package com.ostrich.cloud.ostrichGoodsService.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.ostrich.cloud.ostrichGoodsService.common.status.GrounpGoodsStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 拼团商品表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("grounp_goods")
@ApiModel(value="GrounpGoods对象", description="拼团商品表")
public class GrounpGoods implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "ground_id", type = IdType.AUTO)
    private Integer groundId;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "物品id")
    private Integer goodsId;

    @ApiModelProperty(value = "拼团价格")
    private BigDecimal price;

    @ApiModelProperty(value = "销量")
    private Integer sale;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "添加时间")
    private Date addTime;

    @ApiModelProperty(value = "STAY待开始|BEGIN开始|END结束")
    private GrounpGoodsStatus status;

    @ApiModelProperty(value = "拼团人数")
    private Integer peopleCount;


}
